﻿
namespace SistemaLogistica.Business.Entities
{
    using System;
    using System.Collections.Generic;

    [Serializable]
    public partial class Usuario : Empleados
    {
        public Usuario()
        {
        }

        private Boolean esAdministrador;

        public Boolean EsAdministrador
        {
            get { return this.esAdministrador; }
            set { this.esAdministrador = value; }
        }

        private DateTime fechaRegistro;

        public DateTime FechaRegistro
        {
            get { return this.fechaRegistro; }
            set { this.fechaRegistro = value; }
        }

        private String password;

        public String Password
        {
            get { return this.password; }
            set { this.password = value; }
        }

        private String username;

        public String Username
        {
            get { return this.username; }
            set { this.username = value; }
        }

        private List<Permiso> permisos;

        public List<Permiso> Permiso
        {
            get 
            {
                this.permisos = this.permisos ?? new List<Permiso>();
                return this.permisos;                
            }
            set { this.permisos = value; }
        }
    }
}

